import Layout from '@/layout/index.vue';
import * as i18n from '@/utils';
let account = {
	path: '/account',
	component: Layout,
	name: '账号管理',
	meta: {
	  title: i18n.t('router.accountManag'),
	  icon: 'dashboard',
	  isPermiss:'/management/auth'
	},
  children: [
    {
      path: '/account/organization',
      name: '组织架构',
      component: () => import('@/views/account/organization/index.vue'),
      meta: { title: i18n.t('machine.infos.organiz') },
	  isPermiss:'/management/auth.auth_organization/getList'
    },
		{
		  hidden: true,
			path: '/account/organization/role_info',
		  name: '角色组织',
		  component: () => import('@/views/account/organization/role_info/index.vue'),
		  meta: { title: i18n.t('router.rRoleOrgan'), induce:'/account/organization' },
	  	  isPermiss:'/management/auth.auth_organization_role/getList'
		},
		{
		  hidden: true,
			path: '/account/organization/add_info',
		  name: '添加组织',
		  component: () => import('@/views/account/organization/add_info/index.vue'),
		  meta: { title: i18n.t('account.organization.add'), induce:'/account/organization' },
	  	  isPermiss:'/management/auth.auth_organization/add'
		},
		{
			hidden: true,
		  path: '/account/organization/details_info',
		  name: '编辑组织',
		  component: () => import('@/views/account/organization/details_info/index.vue'),
		  meta: { title: i18n.t('router.editOrgan'), induce:'/account/organization' },
	  	  isPermiss:'/management/auth.auth_organization/update'
		},
		{
		  path: '/account/authority',
		  name: '权限菜单',
		  component: () => import('@/views/account/authority/index.vue'),
		  meta: { title: i18n.t('router.menuPermis') },
	  	  isPermiss:'/management/auth.auth_node/getList'
		},
		{
		  hidden: true,
			path: '/account/authority/add_info',
		  name: '添加权限',
		  component: () => import('@/views/account/authority/add_info/index.vue'),
		  meta: { title: i18n.t('account.authority.add'), induce:'/account/authority' },
	  	  isPermiss:'/management/auth.auth_node/add'
		},
		{
			hidden: true,
		  path: '/account/authority/details_info',
		  name: '编辑权限',
		  component: () => import('@/views/account/authority/details_info/index.vue'),
		  meta: { title: i18n.t('router.permissEdit'), induce:'/account/authority' },
	  	  isPermiss:'/management/auth.auth_node/update'
		},
		{
		  path: '/account/role',
		  name: '权限角色',
		  component: () => import('@/views/account/role/index.vue'),
		  meta: { title: i18n.t('account.organization.permRole') },
		  isPermiss:'/management/auth.auth_role/getList'
		},
		{
			hidden: true,
		  path: '/account/role/add_info',
		  name: '添加角色',
		  component: () => import('@/views/account/role/add_info/index.vue'),
		  meta: { title: i18n.t('account.role.add'), induce:'/account/role' },
		  isPermiss:'/management/auth.auth_role/add'
		},
		{
			hidden: true,
		  path: '/account/role/details_info',
		  name: '编辑角色',
		  component: () => import('@/views/account/role/details_info/index.vue'),
		  meta: { title: i18n.t('account.role.edit'), induce:'/account/role' },
		  isPermiss:'/management/auth.auth_role/update'
		},
		{
			hidden: true,
		  path: '/account/role/bind_role',
		  name: '节点绑定',
		  component: () => import('@/views/account/role/bind_role/index.vue'),
		  meta: { title: i18n.t('router.Nodebind'), induce:'/account/role' },
		  isPermiss:'/management/auth.auth_role_node/bind'
		},
		
		{
		  path: '/account/account',
		  name: '账号',
		  component: () => import('@/views/account/account/index.vue'),
		  meta: { title: i18n.t('router.accountManag') },
		  isPermiss:'/management/auth.auth_manager/getList'
		}
  ]
}

export default account;